﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using PROJECT_BOMBER.BLL.Events.Collisions;

namespace PROJECT_BOMBER.BLL
{
    public class Win : ElementPhysique, ICloneable
    {


        public Win(int x, int y, int width, int height)
            : base(x, y, width, height)
        {
            CollisionStrategy = new WinCollision();

        }

        #region ICloneable Membres

        public object Clone()
        {
            Win win = new Win((int)this.Position.X, (int)this.Position.Y, this.Width, this.Height);
            foreach (KeyValuePair<string, AnimationSprite> value in this.Animations)
            {
                win.AddAnimation(value.Key, value.Value);
            }
            return win;
        }

        #endregion

    }
}
